﻿using PLCWpfTest.ViewModels;
using System.Windows.Controls;
using YWM;

namespace PLCWpfTest.Views
{
    /// <summary>
    /// CentralMonitoringPage.xaml 的交互逻辑
    /// </summary>
    public partial class CentralMonitoringPage : Page
    {
        private readonly CentralMonitoringViewModel _centralMonitoringViewModel;
        public CentralMonitoringPage()
        {
            InitializeComponent();
            DataContext = _centralMonitoringViewModel = YApp.Resolve<CentralMonitoringViewModel>();
        }

        private void Page_Unloaded(object sender, System.Windows.RoutedEventArgs e)
        {
            _centralMonitoringViewModel.Dispose();
        }
    }
}
